package cn.me.alphamq.common.entity.resp;

import cn.me.alphamq.common.entity.BaseMsg;
import cn.me.alphamq.common.enumeration.PushStatusEnum;

/**
 * 推送业务消息的响应对象
 *
 * @author f
 */
public class PushMsgResp extends BaseMsg {

    /**
     * 发送消息的结果的状态
     *
     * @see PushStatusEnum
     */
    private int pushStatus;

    /**
     * 推送失败的原因
     */
    private String desc;

    public PushMsgResp() {
    }

    /**
     * 默认推送成功
     *
     * @param msgId 消息的 id
     */
    public PushMsgResp(String msgId) {
        super(msgId);
        this.pushStatus = PushStatusEnum.SUCCESS.getCode();
    }

    public int getPushStatus() {
        return pushStatus;
    }

    public void setPushStatus(int pushStatus) {
        this.pushStatus = pushStatus;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
